package operator;

/**
 * @author yuisama
 * @date 2022/08/17 10:05
 * 增量运算符
 **/
public class IncrementOperator {
    public static void main(String[] args) {
//        int a = 1;
//        a += 2; // a = a + 2;
//        System.out.println(a);

        int a = 5;
        System.out.println(a ++); // 5,先取值再++
        System.out.println(++ a); // 7，先++再取值
    }
}